// 分销中心通用样式
.distribution-container {
  min-height: 100vh;
  background-color: #F5F5F5;
  padding-bottom: 30rpx;
}

// 分销中心头部样式
.distribution-header {
  background-color: #FFFFFF;
  padding: 30rpx;
  margin-bottom: 20rpx;
  
  .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 30rpx;
    
    .avatar {
      width: 120rpx;
      height: 120rpx;
      border-radius: 60rpx;
      margin-right: 20rpx;
    }
    
    .info {
      flex: 1;
      
      .nickname {
        font-size: 32rpx;
        color: #333;
        font-weight: bold;
        margin-bottom: 10rpx;
      }
      
      .phone {
        font-size: 24rpx;
        color: #999;
      }
    }
    
    .level {
      display: flex;
      align-items: center;
      padding: 10rpx 20rpx;
      background-color: #FFF5F5;
      border-radius: 30rpx;
      
      .icon {
        width: 40rpx;
        height: 40rpx;
        margin-right: 10rpx;
      }
      
      .name {
        font-size: 24rpx;
        color: #D02B29;
      }
    }
  }
  
  .commission-info {
    display: flex;
    justify-content: space-between;
    
    .item {
      flex: 1;
      text-align: center;
      
      .value {
        font-size: 36rpx;
        color: #D02B29;
        font-weight: bold;
        margin-bottom: 10rpx;
        display: block;
      }
      
      .label {
        font-size: 24rpx;
        color: #999;
      }
    }
  }
}

// 分销中心菜单样式
.distribution-menu {
  background-color: #FFFFFF;
  padding: 20rpx;
  margin-bottom: 20rpx;
  
  .menu-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20rpx;
    
    .menu-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20rpx;
      background-color: #F5F5F5;
      border-radius: 10rpx;
      
      .icon {
        width: 60rpx;
        height: 60rpx;
        margin-bottom: 10rpx;
      }
      
      .name {
        font-size: 24rpx;
        color: #333;
      }
    }
  }
}

// 分销中心数据统计样式
.distribution-stats {
  background-color: #FFFFFF;
  padding: 20rpx;
  margin-bottom: 20rpx;
  
  .stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;
    
    .title {
      font-size: 32rpx;
      color: #333;
      font-weight: bold;
    }
    
    .date-picker {
      display: flex;
      align-items: center;
      padding: 10rpx 20rpx;
      background-color: #F5F5F5;
      border-radius: 30rpx;
      
      .text {
        font-size: 24rpx;
        color: #666;
        margin-right: 10rpx;
      }
      
      .arrow {
        width: 24rpx;
        height: 24rpx;
        color: #999;
      }
    }
  }
  
  .stats-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20rpx;
    
    .stats-item {
      background-color: #F5F5F5;
      padding: 20rpx;
      border-radius: 10rpx;
      
      .label {
        font-size: 24rpx;
        color: #999;
        margin-bottom: 10rpx;
      }
      
      .value {
        font-size: 32rpx;
        color: #333;
        font-weight: bold;
      }
    }
  }
}

// 分销中心列表样式
.distribution-list {
  background-color: #FFFFFF;
  padding: 20rpx;
  
  .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20rpx;
    
    .title {
      font-size: 32rpx;
      color: #333;
      font-weight: bold;
    }
    
    .more {
      font-size: 24rpx;
      color: #999;
    }
  }
  
  .list-content {
    .list-item {
      display: flex;
      align-items: center;
      padding: 20rpx;
      background-color: #F5F5F5;
      border-radius: 10rpx;
      margin-bottom: 20rpx;
      
      &:last-child {
        margin-bottom: 0;
      }
      
      .image {
        width: 120rpx;
        height: 120rpx;
        border-radius: 8rpx;
        margin-right: 20rpx;
      }
      
      .info {
        flex: 1;
        
        .name {
          font-size: 28rpx;
          color: #333;
          margin-bottom: 10rpx;
        }
        
        .desc {
          font-size: 24rpx;
          color: #999;
        }
      }
      
      .action {
        .btn {
          width: 160rpx;
          height: 60rpx;
          line-height: 60rpx;
          text-align: center;
          background-color: #D02B29;
          color: #FFFFFF;
          border-radius: 30rpx;
          font-size: 24rpx;
        }
      }
    }
  }
}

// 分销中心空状态样式
.distribution-empty {
  padding: 100rpx 0;
  text-align: center;
  
  .image {
    width: 200rpx;
    height: 200rpx;
    margin-bottom: 20rpx;
  }
  
  .text {
    font-size: 28rpx;
    color: #999;
  }
}

// 分销中心加载状态样式
.distribution-loading {
  text-align: center;
  padding: 20rpx 0;
  
  .text {
    font-size: 24rpx;
    color: #999;
  }
}

// 分销中心底部按钮样式
.distribution-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20rpx;
  background-color: #FFFFFF;
  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
  
  .btn {
    width: 100%;
    height: 80rpx;
    line-height: 80rpx;
    text-align: center;
    background-color: #D02B29;
    color: #FFFFFF;
    border-radius: 40rpx;
    font-size: 32rpx;
    
    &[disabled] {
      background-color: #CCCCCC;
    }
  }
}

// 分销中心弹窗样式
.distribution-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  
  .popup-content {
    width: 600rpx;
    background-color: #FFFFFF;
    border-radius: 20rpx;
    padding: 30rpx;
    
    .popup-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30rpx;
      
      .title {
        font-size: 32rpx;
        color: #333;
        font-weight: bold;
      }
      
      .close {
        width: 40rpx;
        height: 40rpx;
        color: #999;
      }
    }
    
    .popup-body {
      .form-item {
        margin-bottom: 30rpx;
        
        &:last-child {
          margin-bottom: 0;
        }
        
        .label {
          font-size: 28rpx;
          color: #333;
          margin-bottom: 20rpx;
          display: block;
        }
        
        .input {
          width: 100%;
          height: 80rpx;
          line-height: 80rpx;
          font-size: 28rpx;
          color: #333;
          border-bottom: 1rpx solid #EEEEEE;
        }
        
        .picker {
          display: flex;
          justify-content: space-between;
          align-items: center;
          height: 80rpx;
          line-height: 80rpx;
          font-size: 28rpx;
          color: #333;
          border-bottom: 1rpx solid #EEEEEE;
          
          .arrow {
            color: #999;
          }
        }
      }
    }
    
    .popup-footer {
      margin-top: 30rpx;
      display: flex;
      justify-content: space-between;
      
      .btn {
        flex: 1;
        height: 80rpx;
        line-height: 80rpx;
        text-align: center;
        border-radius: 40rpx;
        font-size: 32rpx;
        margin: 0 20rpx;
        
        &.cancel {
          background-color: #F5F5F5;
          color: #666;
        }
        
        &.confirm {
          background-color: #D02B29;
          color: #FFFFFF;
        }
      }
    }
  }
} 